package com.shiro.dao;

import com.shiro.domain.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface RoleDao {

    @Select("select * form role where name = #{name}")
    Role findRoleByName(@Param("name") String name);
}
